<%@page contentType="text/html" pageEncoding="UTF-8" import="java.io.*, java.sql.*, javax.sql.*"%>
<%

    Connection con = com.elookinto.wordlist.Util.getCon();
    PreparedStatement st = null;
     String url = request.getParameter("url");
    String uid = request.getParameter("uid");
    if (uid==null || ! uid.equals(session.getAttribute("uid"))) {
        out.println("noauth");
        return;
    }
   
   
    String note = null;
    st = con.prepareStatement("DELETE FROM recording  WHERE uid=? and url=?");
    st.setString(1, uid);
    st.setString(2, url);
    st.executeUpdate();
    st.close();
    con.close();
    out.println("deleted");
%>
